from django.db import models


# 渠道
class Channel(models.Model):
    appKey = models.CharField(max_length=128, verbose_name="渠道key")
    appId = models.CharField(max_length=64, help_text="渠道id", db_index=True)
    appSecret = models.CharField(max_length=256, help_text="渠道秘钥")
    name = models.CharField(max_length=32, verbose_name="渠道名称")
    create_time = models.DateTimeField(verbose_name="创建时间", auto_now_add=True)

    class Meta:
        verbose_name = "api渠道"
        verbose_name_plural = verbose_name
